#!/usr/bin/perl
while($t++<$FOUR*$FOUR+$EIGHT){$b[$_]=[map{$"}@a]for@a;$xs=$z>23?($z-=+$FOUR,$xs):$z-$FOUR;$u=int(@a/$THREE-$xs);
for$x($u..$u+$xs*$THREE+$TWO){$b[$_]->[$x]=$x==$_?'\\':$x==@a-$_?'/':$b[$_]->[$x]for($u..$u+$TWO+$THREE*$xs)}$i=0;while($z-$i>0){$s=$z-($i+=$FOUR);$u=int(@a/$THREE-$s);$s*=$THREE;$us=$u+$s;for$x($u..10+$us-9){for$y($u..$u+$TWO+$s){;$b[$y]->[$x]=''if$t>=31&&$s<$EIGHT;$b[$y]->[$x]=($y==$u||$y-$TWO==$us)&&($x==$u||$x-$TWO==$us)?'+':$y==$u||$y==$us+$TWO?'-+':$x==$u||$x-$TWO==$us?'|':$b[$y]->[$x]};}BEGIN{$FOUR=5;$THREE=$FOUR-3;$TWO=$FOUR/5;@a=0..$TWO+42-$FOUR;$EIGHT=$FOUR*2}}if(@a-$FOUR+$TWO==$t){$TEN=$FOUR+$FOUR+$TWO;$THREE;@w=map{[split//]}qw(Just Another Perl Hacker);$y=$x=42-$FOUR**$THREE; for$w(@w){$y++;$b[$y]->[$x+$_]=$w->[$_]for(0..$#$w)}}print"\ec",map{@{$b[$_]},$/}@a;select $&,$&,$&,$TWO/10;$z++;}